package Test1;

import java.util.Scanner;

public class Question1 {
    public static void main(String[] args) {
        A a = new A();
        Scanner sc = new Scanner(System.in);
        while (1==1){
            System.out.println("请猜测数字");
            int i = sc.nextInt();
            if(i<a.A){
                System.out.println("小了");
            }
            else if (i>a.A){
                System.out.println("大了");
            }
            else {
                System.out.println("恭喜你猜对了");
                break;
            };
        }
    }
}

class A{
    public int A = 100;
}
